<st #st [scroll]="{ y: '100%' }" [size]="TABLE_PARAMETER.size" [columns]="stColumns" [data]="tableData"
  [loading]="loading" [bordered]="true" [ps]="TABLE_PARAMETER.ps" [pi]="TABLE_PARAMETER.pi"
  [total]="TABLE_PARAMETER.page.total" [multiSort]="TABLE_PARAMETER.multiSort" [page]="TABLE_PARAMETER.page"
  (change)="change($event)">
  <ng-template st-row="number" let-row let-index="index">
    {{ ((st.pi ? st.pi : 1) - 1) * (st.ps ? st.ps : 0) + (index + 1) }}
  </ng-template>
  <ng-template st-row="operations" let-row let-index="index">
    <ng-container *ngIf="row.tag === 4">
      <a (click)="onUpdate(row)">发预警</a>
    </ng-container>
    <ng-container *ngIf="row.tag === 2">
      <a (click)="onUpdate(row)">警告</a>
    </ng-container>
    <ng-container *ngIf="row.tag === 3">
      <span>良好</span>
    </ng-container>
    <ng-container *ngIf="row.tag === 1">
      <span>优秀</span>
    </ng-container>
  </ng-template>
</st>
